<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeBehind="Default.aspx.cs" Inherits="www.Search_Default" %>

<%@ Register Assembly="NBusiness" Namespace="NBusiness.Data.Web" TagPrefix="cc1" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="contentPlaceHolder1">        <asp:Label ID="Label1" runat="server" Text="Search By Country:"></asp:Label>
    <asp:DropDownList ID="CountryDropDown" runat="server" DataSourceID="CountryDataSource" DataTextField="Name" DataValueField="CountryId" >
    </asp:DropDownList> 
    
    <cc1:EntityDataSource ID="CountryDataSource" runat="server" 
        AssemblyName="Example.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        OnSelect="CountryDataSource_Select" TypeName="BeerBase.Business.CachedCountryCollection" >
    </cc1:EntityDataSource>
    &nbsp;
    <asp:Button ID="CountryButton" runat="server" Text="Go" OnClick="CountryButton_Click" />
    <br />
    <asp:Label ID="Label2" runat="server" Text="Search By Style:"></asp:Label>
    <asp:DropDownList ID="StyleDropDown" runat="server" DataSourceID="StyleDataSource" DataTextField="Name" DataValueField="BeerStyleId">
    </asp:DropDownList>
    <cc1:EntityDataSource ID="StyleDataSource" runat="server" 
        AssemblyName="Example.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        OnSelect="StyleDataSource_Select" TypeName="BeerBase.Business.CachedBeerStyleCollection" >
    </cc1:EntityDataSource>
    <asp:Button ID="StyleButton" runat="server" Text="Go" OnClick="StyleButton_Click" />
    <br />
    <asp:Label ID="Label3" runat="server" Text="Search By Availability:"></asp:Label>
    <asp:DropDownList ID="AvailabilityDropDown" runat="server" DataSourceID="AvailabilityDataSource" DataTextField="Text" DataValueField="AvailabilityId">
    </asp:DropDownList>
    <cc1:EntityDataSource ID="AvailabilityDataSource" runat="server"
        AssemblyName="Example.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
        OnSelect="AvailabilityDataSource_Select" TypeName="BeerBase.Business.CachedAvailabilityCollection" >
    </cc1:EntityDataSource>
    <asp:Button ID="AvailabilityButton" runat="server" Text="Go" OnClick="AvailabilityButton_Click" />
</asp:Content>